package com.mobclick.android;

import android.content.Context;
import android.util.Log;

final class m extends Thread
{
  private static final Object a = new Object();
  private Context b;
  private int c;
  private String d;
  private String e;
  private String f;
  private String g;
  private int h;

  m(Context paramContext, int paramInt)
  {
    this.b = paramContext;
    this.c = paramInt;
  }

  m(Context paramContext, String paramString, int paramInt)
  {
    this.b = paramContext;
    this.c = paramInt;
    this.d = paramString;
  }

  m(Context paramContext, String paramString1, String paramString2, int paramInt)
  {
    this.b = paramContext;
    this.c = paramInt;
    this.d = paramString1;
    this.e = paramString2;
  }

  m(Context paramContext, String paramString1, String paramString2, String paramString3, int paramInt1, int paramInt2)
  {
    this.b = paramContext;
    this.d = paramString1;
    this.f = paramString2;
    this.g = paramString3;
    this.h = paramInt1;
    this.c = paramInt2;
  }

  public void run()
  {
    Object localObject1;
    try
    {
      localObject1 = a;
      monitorenter;
    }
    catch (Exception localException1)
    {
      try
      {
        int i;
        if (i == 0);
      }
      finally
      {
        try
        {
          if (this.b == null)
          {
            if (UmengConstants.testMode)
              Log.e("MobclickAgent", "unexpected null context in invokehander flag=0");
            monitorexit;
          }
          do
          {
            while (true)
            {
              return;
              MobclickAgent.a(MobclickAgent.a(), this.b);
              monitorexit;
            }
            localObject2 = finally;
            monitorexit;
            throw localObject2;
            localException1 = localException1;
          }
          while (!(UmengConstants.testMode));
          Log.e("MobclickAgent", "Exception occurred in invokehander.");
          localException1.printStackTrace();
        }
        catch (Exception localException2)
        {
          while (true)
          {
            do
              while (true)
              {
                while (true)
                {
                  while (true)
                  {
                    if (!(UmengConstants.testMode));
                    Log.e("MobclickAgent", "unexpected null context in invokehander flag=0");
                    localException2.printStackTrace();
                  }
                  if (this.c != 1)
                    break;
                  MobclickAgent.a(MobclickAgent.a(), this.b, this.d, this.e);
                }
                if (this.c != 2)
                  break;
                MobclickAgent.a(MobclickAgent.a(), this.b, this.d);
              }
            while (this.c != 3);
            MobclickAgent.a(MobclickAgent.a(), this.b, this.d, this.f, this.g, this.h);
          }
        }
      }
    }
  }
}